package alp.starcode.nudtportal.framework.mybatis.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * log_data_exchange（消息队列日志表）
 * </p>
 *
 * @author xwx
 * @since 2023-08-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("log_data_exchange")
@ApiModel(value = "LogDataExchange对象", description = "log_data_exchange（消息队列日志表）")
public class LogDataExchange extends Model<LogDataExchange> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "数据交换流水号")
    @TableId("exchange_id")
    private String exchangeId;

    @ApiModelProperty(value = "用户流水号")
    @TableField("user_id")
    private String userId;

    @ApiModelProperty(value = "一卡通卡号")
    @TableField("campus_number")
    private String campusNumber;

    @ApiModelProperty(value = "登录账号")
    @TableField("login_name")
    private String loginName;

    @ApiModelProperty(value = "交换时间")
    @TableField("exchange_time")
    private Long exchangeTime;

    @ApiModelProperty(value = "交换状态")
    @TableField("exchange_status")
    private Integer exchangeStatus;

    @ApiModelProperty(value = "交换类型")
    @TableField("exchange_type")
    private String exchangeType;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private Long createTime;

    @ApiModelProperty(value = "修改时间")
    @TableField("update_time")
    private Long updateTime;


    @Override
    protected Serializable pkVal() {
        return this.exchangeId;
    }

}
